package org.zk.dubbo_consumer.util;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * 资源映射路径
 */
@Configuration
public class UrlConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/static/image/picture/**").addResourceLocations("file:E:/courseCover/");
        registry.addResourceHandler("/static/video/**").addResourceLocations("file:E:/courseVideo/");
        registry.addResourceHandler("/static/image/picture/**").addResourceLocations("file:E:/teacherPic/");
        registry.addResourceHandler("/static/image/picture/**").addResourceLocations("file:E:/userPhoto/");

    }
}
